//
//  ZPBFistPageControllerVC.m
//  WZLProduct
//
//  Created by dllo on 16/3/17.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "ZPBFistPageControllerVC.h"

@interface ZPBFistPageControllerVC ()

@property (nonatomic, strong) UIView *bottomView;
@property (nonatomic, strong) UIButton *hotButton;
@property (nonatomic, strong) UIButton *nButton;
@property (nonatomic, strong) UILabel *hotLabel;
@property (nonatomic, strong) UILabel *nLabel;

@end

@implementation ZPBFistPageControllerVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self createButton];
    
}

- (void)createButton {
    CGRect Height = self.navigationController.navigationBar.frame;
    
   self.hotButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _hotButton.backgroundColor = [UIColor whiteColor];
    [_hotButton addTarget:self action:@selector(hotButton:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:_hotButton];
    
    
    self.nButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _nButton.backgroundColor = [UIColor whiteColor];
    [_nButton addTarget:self action:@selector(newButton:) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:_nButton];
    
    self.hotLabel = [[UILabel alloc] init];
    _hotLabel.text = @"HOT";
    _hotLabel.textColor = [UIColor greenColor];
    _hotLabel.center = _hotButton.center;
    [_hotButton addSubview:_hotLabel];
    
    self.nLabel = [[UILabel alloc] init];
    _nLabel.text = @"NEW";
    _nLabel.textColor = [UIColor greenColor];
    _nLabel.center = _nButton.center;
    [_nButton addSubview: _nLabel];
    
    self.bottomView = [[UIView alloc] init];
    _bottomView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:_bottomView];
    
}
- (void)hotButton:(UIButton *)button {
    
}

- (void)newButton:(UIButton *)button {
   
    
}

















- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden = NO;
}


@end
